import PageTools from '@/components/PageTools'
import ImageUpload from '@/components/ImageUpload'
 import ScreenFull from '@/components/ScreenFull' // 全屏 组件
 import Lang from '@/components/lang'
import store from '@/store'
import TagsView from '@/components/TagsView'
import ThemePicker from '@/components/ThemePicker' //  颜色选择组件 ThemePicker
export default {
  install(Vue){
    Vue.component(PageTools.name, PageTools)
    Vue.component(ImageUpload.name, ImageUpload)
    Vue.prototype.$aa = function() {
      console.log('哈哈')
    }
    Vue.component(ScreenFull.name, ScreenFull)
    Vue.component(Lang.name, Lang)
    Vue.component(TagsView.name, TagsView)
    Vue.component(ThemePicker.name, ThemePicker)
    // 权限控制按钮 方法一
    // Vue.prototype.check=function(point){
    //   // 如果point在权限中，那这个按钮就应该显示出来
    //   return store.state.user.userInfo.roles?.points.some(item=>item.toLowerCase() === point.toLowerCase())

    // }
  }
}
